/*
 * Copyright (C) 2010 Seapeak.Xu
 *
 * fostmq may be copied only under the terms of the GNU General
 * Public License V3, which may be found in the fostmq source kit.
 *
 * Created on: 2010-7-27
 * Author: Seapeak.Xu
 */

#ifndef FOST_MGNB_H_
#define FOST_MGNB_H_
#ifdef __cplusplus
extern "C"
{
#endif

#include "fost_typedef.h"


extern bool g_loop;

#ifndef IP_LEN
#define IP_LEN 16
#endif

#ifndef LINE_LEN
#define LINE_LEN 1024
#endif

#ifndef PATH_LEN
#define PATH_LEN 256
#endif

#ifndef DATETIME_LEN_NOSEPY
#define DATETIME_LEN_NOSEPY 15
#endif

#ifndef DATETIME_LEN_SEPY
#define DATETIME_LEN_SEPY 20
#endif

	/*
	 * the config item key length
	 */
#ifndef CONFKEY_LEN
#define CONFKEY_LEN 64
#endif

	/*
	 * the config item value length
	 */
#ifndef CONFVALUE_LEN
#define CONFVALUE_LEN LINE_LEN-CONFKEY_LEN-1
#endif

#ifndef INT_LEN
#define INT_LEN 32
#endif

#ifdef __cplusplus
}
#endif
#endif /* FOST_MGNB_H_ */
